<?php

class MenuItemPeer extends BaseMenuItemPeer
{

    /**
     * Enter description here...
     *
     * @param unknown_type $alias_url
     * @return MenuItem
     */
    public static function retrieveByAliasUrl($alias_url){
        $c= new Criteria();
        $c->add( self::ALIAS_URL , trim($alias_url) );
        return self::doSelectOne($c);
    }
    /**
     * Enter description here...
     *
     * @param unknown_type $alias_url
     * @return MenuItem
     */
    public static function getBySection($alias_url){
        $obj = self::retrieveByAliasUrl( sfContext::getInstance()->getRequest()->getParameter('section') );
        return $obj;
    }
}
